<?php


return [
    // 默认磁盘
    'default'          => getenv('FILESYSTEM_DRIVER', 'local'),
    // 磁盘列表
    'disks'            => [
        'local'        => [
            'type' => 'local',
            'root' => runtime_path() . '/uploads',
        ],
        'public'       => [
            // 磁盘类型
            'type'       => 'local',
            // 磁盘路径
            'root'       => run_path() . '/public/uploads',
            // 磁盘路径对应的外部URL路径
            'url'        => '/uploads',
            // 可见性
            'visibility' => 'public',
            'validate'   => [
                'image' => [
                    'size' => 10485760,// 10MB
                    'ext'  => ['png', 'jpg', 'jpeg', 'gif', 'bmp', 'ico', 'svg'],
                    'mime' => ['image/png', 'image/jpeg', 'image/gif', 'image/bmp', 'image/ico', 'image/svg'],
                ],
                'video' => [
                    'size' => 209715200,// 200MB
                    'ext'  => ['mp4', 'mov', 'mpg', 'mpeg', 'rmvb', 'avi', 'rm', 'mkv', 'flv', 'wmv'],
                ],
                'audio' => [
                    'size' => 419430400,
                    'ext'  => ['mp4', 'wav', 'mid', 'flac', 'ape', 'm4a', 'ogg', 'mid'],
                ],
                'file'  => [
                    'size' => 419430400,// 50MB
                    'ext'  => ['png', 'jpg', 'jpeg', 'gif', 'bmp', 'ico', 'svg', 'mp4', 'mov', 'mpg', 'mpeg', 'rmvb', 'avi', 'rm', 'mkv', 'flv', 'wmv', 'mp4', 'wav', 'mid', 'flac', 'ape', 'm4a', 'ogg', 'mid', 'txt', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf', 'md', 'xml', 'rar', 'zip', 'tar', 'gz', '7z',]
                ]
            ],
        ],

        // 后台导入配置
        'admin_import' => [
            // 磁盘类型
            'type'       => 'local',
            // 磁盘路径
            'root'       => run_path() . '/import',
            // 磁盘路径对应的外部URL路径
            'url'        => '',
            // 可见性
            'visibility' => 'private',
            'validate'   => [
                'size' => 2048000,
                'ext'  => ['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
            ],
        ],
        // 更多的磁盘配置信息
    ],
    // 表单内是否真实删除文件
    'form_true_delete' => false,
];
